DEBUGFLAGS=

all: client server coordinator

client: bin client.cpp client_comm.cpp client_comm.h client_serialize.cpp client_serialize.h force_look
	g++ -Wall $(DEBUGFLAGS) -g -lncurses -o bin/client client.cpp client_comm.cpp client_serialize.cpp

server: server.cpp server_serialize.cpp server_serialize.h bin
	g++ $(DEBUGFLAGS) -g -o bin/server server.cpp -Wall 

coordinator: coordinator.cpp
	g++ $(DEBUGFLAGS) -g -o bin/coordinator coordinator.cpp -Wall

clean:
	rm -rf server

force_look:
	true

bin: force_look
	mkdir -p bin
